import org.w3c.dom.NodeList;

import java.util.Arrays;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:二叉树
 * User: Admin
 * Date: 2022-05-15
 * Time: 16:40
 */
public class Main {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root =  binaryTree.createTree();
        binaryTree.preOrder(root);
        System.out.println();
        binaryTree.inOrder(root);
        System.out.println();
        binaryTree.postOrder(root);
        System.out.println();
        List<Character> ch =binaryTree.preorderTraversal(root);
        System.out.println(ch);

    }
}
